var wish = require('../../../controllers/mis/weixin/wish-controller');

module.exports = function (app) {

    // GET
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/wish/getWishList/:page/:size', wish.getBackofficeWishList);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/wish/getUserWishList/:page/:size', wish.getBackofficeUserWishList);

    // CREATE/UPDATE
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/wish/createWish', wish.createWish);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/wish/updateWish/:wishId', wish.updateWish);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/wish/updateUserWish/:wishId', wish.updateUserWish);

    // DELETE
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/wish/deleteWish', wish.deleteWish);   // body: delObj
};